﻿// *----------------------------------------------------------------
// Copyright (C) 2017 通通优品
// 版权所有。
// 
// 类名：DbFactory.cs
// 功能描述：TongTongMall.MallWeb.Test
// 
// Create User：jym 2017/02/09
// 
// Edit User：UserName,EditTime
// Describe：Describe
// ----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TongTongMall.Dapper;
using TongTongMall.Domain.Uow;

namespace TongTongMall.MallWeb.Test
{

    public class DbsFactory : IDbProviderFactory
    {

        private readonly IConnectionStringResolver _connectionStringResolver;
        public DbsFactory(IConnectionStringResolver connectionStringResolver)
        {
            _connectionStringResolver = connectionStringResolver;
        }

        public string ConnectionString
        {
            get
            {
                return "Data Source=10.100.10.43;Initial Catalog=saas_tongtongmall;Persist Security Info=True;User ID=sa;Password=test123456!;Connection LifeTime=10";
            }
        }

        public DbProviderFactory DbFactory
        {
            get
            {
                return SqlClientFactory.Instance;
            }
        }

    }
}
